//
//  LLNavBar.swift
//  LaiLang
//
//  Created by David on 2017/2/3.
//  Copyright © 2017年 David. All rights reserved.
//

import UIKit

class LLNavBar: UIView {

    var navBG: UIView!
    
    var barTintColor: UIColor? {
        get{
            return navBG.backgroundColor
        }
        set(color){
            navBG.backgroundColor = color
        }
    }
    
    var barAlpht: CGFloat{
        get{
            return navBG.alpha
        }
        set(alpha){
            navBG.alpha = alpha
        }
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        navBG = UIView(frame: CGRect(x: 0, y: 0, width: frame.width, height: frame.height))
        addSubview(navBG)
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */

}
